
public class Inequalite {
	Expression expr;
	public Inequalite(){expr = new Expression();}
	public Inequalite(Expression ex){
		expr = ex;
	}

	public Inequalite(String s, EnsembleVariable ev){
		String ms = s;
		int i=0;
		int carLu=s.charAt(i);
//		System.out.println(s);
		StringBuffer buffer = new StringBuffer();
		
		do{
			buffer.append((char)carLu);
			i++;
			carLu = s.charAt(i);
		}while("><=".indexOf(carLu)==-1);
		
		ms = buffer.toString();
//		System.out.println(ms);
		if(carLu=='>') expr = new Expression(ms,ev);
		
		if(carLu=='<'){
			Expression tmp = new Expression(ms,ev);
			for(int j =0;j<tmp.listExpr.size();j++)
				tmp.listExpr.set(j, (-1)*tmp.listExpr.get(j));
			expr = tmp;
		}
	}
	public void pulish(EnsembleVariable ev){
		System.out.print("INE:");
		expr.publish(ev);
//		System.out.println();
	}
}
